<script setup>
import OriginAnalysis from './components/OriginAnalysis.vue'
import SiteTrack from './components/SiteTrack.vue'
import HomeSituation from './components/HomeSituation.vue'
import PopulationData from './components/PopulationData.vue'
import ResidenceAnalysis from './components/ResidenceAnalysis.vue'
import NAEarlyWarning from './components/NAEarlyWarning.vue'
</script>
<template>
  <div class="returnTownBox">
    <div class="contentLeft">
      <div class="leftTop">
        <OriginAnalysis />

        <SiteTrack class="centerRight" />
      </div>

      <HomeSituation class="leftBottom" />
    </div>

    <div class="contentRight">
      <PopulationData />

      <ResidenceAnalysis class="rightCenter" />

      <NAEarlyWarning class="rightBottom" />
    </div>
  </div>
</template>

<style scoped lang="less">
.returnTownBox {
  display: flex;

  .contentLeft {
    flex: 1;

    .leftTop {
      display: flex;

      .centerRight {
        margin-left: 16px;
      }
    }

    .leftBottom {
      margin-top: 16px;
    }
  }

  .contentRight {
    margin-left: 16px;

    .rightCenter {
      margin-top: 16px;
    }

    .rightBottom {
      margin-top: 16px;
      width: 696px;
      height: 265px;
      background-image: url('@/assets/returnTown/boxbg5.png');
      background-repeat: no-repeat;
      background-size: 100% 100%;
      display: flex;
      flex-direction: column;

      .title {
        margin-top: 8px;
        width: 100%;
        height: 20px;
        font-size: 14px;
        color: #ffffff;
        display: flex;
        justify-content: center;
        align-items: center;
      }

      .tableBox {
        flex: 1;
        padding: 20px 16px 17px 16px;
        display: flex;
        flex-direction: column;
        overflow: hidden;

        .line {
          display: flex;
          flex-direction: row;
          justify-content: center;
          width: 100%;
          height: 20px;
          font-size: 14px;
          color: #ffffff;
          text-align: center;
        }
        .table {
          flex: 1;
          width: 100%;
          overflow: hidden auto;
          margin-top: 16px;

          .tr {
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            height: 56px;
            font-size: 14px;
            color: #ffffff;
            text-align: center;

            &:nth-child(odd) {
              background: rgba(19, 181, 177, 0.4);
            }
          }
        }
      }
    }
  }
}
// 布局样式
// .container {
//   box-sizing: border-box;
//   display: flex;
//   padding: 10px 20px 0;

//   .grow {
//     flex: 1;
//     height: 100%;
//     .table-box {
//       height: 43vh;
//       box-sizing: border-box;
//       padding: 7px;
//     }
//   }
// }

// .double-box {
//   display: flex;

//   .item {
//     flex: 1;
//   }
// }

// .content-box {
//   width: 90%;
//   margin: 0 auto;
//   margin-top: 10px;
//   display: flex;
//   align-items: center;
//   justify-content: space-between;
//   flex-wrap: wrap;
//   .line {
//     width: 1px;
//     height: 71px;
//   }
//   .content-item {
//     width: 153px;
//     height: 170px;
//     display: flex;
//     flex-direction: column;
//     align-items: center;

//     .content-desc {
//       text-align: center;
//       font-size: 14px;
//       font-family: Source Han Sans CN;
//       font-weight: 400;
//       color: #ffffff;
//     }

//     .count {
//       font-family: Source Han Sans CN;
//       font-weight: 400;
//       font-size: 16px;
//       color: #00eaff;
//       span {
//         font-size: 12px;
//         color: #ffffff;
//       }
//     }
//   }
// }

// // 表格样式
// .line {
//   display: flex;
//   flex-direction: row;
//   justify-content: center;
//   align-items: center;
//   padding: 10px 0;
//   div {
//     text-align: center;
//   }
// }
// .lineColor {
//   background-color: #2a64b1;
// }

// .circle-box {
//   display: flex;
//   justify-content: center;
// }

// .circle {
//   width: 21px;
//   height: 21px;
//   background-image: url('@/assets/circle.png');
//   background-repeat: no-repeat;
//   background-size: cover;
//   display: flex;
//   justify-content: center;
//   align-items: center;
// }
</style>
